package com.session1;

public class Whale extends Mammal {
    public Whale(String food, String sound) {
        super(food, sound);
    }

    @Override
    public void eat() {
        System.out.println("鲸鱼喜欢吃" + this.getFood());
    }

    @Override
    public void sound() {
        System.out.println("鲸鱼" + this.getSound() + "叫");
    }
}
